<!doctype html>
<html class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加简历</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <link rel="icon" type="image/png" href="icon/I.png">
    <script th:src="@{/js/jquery-3.6.0.js}"></script>
    <script th:src="@{/layui/dist/layui.js}"></script>
    <script th:src="@{/js/zhiyy.js}"></script>
    <!--        <script src="layer/extend/layer.ext.js"></script>-->
    <style>
        #addAsset{
            width: 100px;
            height: 30px;
            line-height: 30px;
            background: #009F95;
            color: #FFFFFF;
            text-align: center;
        }

         table tr th{
             text-align: center !important;
             font-weight: bold !important;
         }
        tr td{
            text-align: center
        }
    </style>
</head>
<body onload="selPro()" style="background: rgb(241, 241, 241) !important;">
<div class="box1"  style="width: 98%; margin: 0 auto">
    <form  class="layui-form" id="duowenjian" enctype="multipart/form-data" method="post" action="/addyy1">
        <table class="layui-table">
            <tr>
                <td>应聘职位名称：</td>
                <td><input type="text" class="layui-input" readonly="readonly" id="positionName" name="positionName"/></td>
                <td>应聘职位编码：</td>
                <td><input type="text" class="layui-input" readonly="readonly" id="positionId" name="positionId"/></td>
                <td>职位分类</td>
                <td><input type="text" class="layui-input" readonly="readonly" id="sort" name="sort"/></td>
                <td><div class="addAsset" id="addAsset" onclick="tanchuang()">职位选择</div></td>
            </tr>
        </table>

        <table class="layui-table">

            <tr>
                <td>姓名：</td>
                <td><input type="text" class="layui-input" id="name" name="name"/></td>
                <td>性别：</td>
                <td>
                    <div class="layui-input-inline" style="display: block;">
                        <div class="layui-input-block" style="margin-left: 0px;">
                            <select name="sex" lay-verify="" id="sex">
                                <option value="" name="sex">--请选择--</option>
                                <option value="男" name="sex">男</option>
                                <option value="女" name="sex">女</option>
                            </select>
                        </div>
                    </div>
                </td>
                <td>招聘类型</td>
                <td>
                    <div class="layui-input-inline" style="display: block;">
                        <div class="layui-input-block" style="margin-left: 0px;">
                            <select name="type" lay-verify="" id="type">
                                <option value="" name="type">--请选择--</option>
                                <option value="校园招聘" name="type">校园招聘</option>
                                <option value="社会招聘" name="type">社会招聘</option>
                            </select>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td>EMAIL:</td>
                <td><input type="text" class="layui-input" id="email" name="email"/></td>
                <td>联系电话：</td>
                <td><input type="text" class="layui-input" id="phone" name="phone"/></td>
                <td>户口所在地：</td>
                <td><input type="text" class="layui-input" id="huKouAdress" name="huKouAdress"/></td>
            </tr>
            <tr>
                <td>住址：</td>

                <td colspan="3"><input type="text" class="layui-input" id="nowAdress" name="nowAdress"/></td>
                <td>政治面貌：</td>
                <td><input type="text" class="layui-input" id="poStatus" name="poStatus"/></td>
            </tr>
            <tr>
                <td>身份证号：</td>
                <td><input type="text" class="layui-input" id="cardId" name="cardId"/></td>
                <td>毕业院校：</td>
                <td><input type="text" class="layui-input" id="school" name="school"/></td>
                <td>学历：</td>
                <td>
                    <div class="layui-input-inline" style="display: block;">
                        <div class="layui-input-block" style="margin-left: 0px;">
                            <select name="educationBackground" lay-verify="" id="educationBackground" >
                                <option value="" name="educationBackground">--请选择--</option>
                                <option value="专科" name="educationBackground">专科</option>
                                <option value="本科" name="educationBackground">本科</option>
                                <option value="硕士" name="educationBackground">硕士</option>
                                <option value="博士" name="educationBackground">博士</option>
                            </select>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td>专业：</td>
                <td><input type="text" class="layui-input" id="major" name="major"/></td>
                <td>工作经验：</td>
                <td><input type="text" class="layui-input" id="experience" name="experience"/></td>
                <td>薪资要求：</td>
                <td><input type="text" class="layui-input" id="salaryRequirement" name="salaryRequirement"/></td>
            </tr>
            <tr>
                <td>是否在职：</td>
                <td>
                    <div class="layui-input-inline" style="display: block;">
                        <div class="layui-input-block" style="margin-left: 0px;">
                            <select name="isWork" lay-verify="" id="isWork">
                                <option value="">--请选择--</option>
                                <option value="在职" name="isWork">在职</option>
                                <option value="离职" name="isWork">离职</option>
                            </select>
                        </div>
                    </div>
                </td>
                <td>是否应届生：</td>
                <td>
                    <div class="layui-input-inline" style="display: block;">
                        <div class="layui-input-block" style="margin-left: 0px;">
                            <select name="isStudent" lay-verify="" id="isStudent">
                                <option value="">--请选择--</option>
                                <option value="是" name="isStudent" >是</option>
                                <option value="否" name="isStudent" >否</option>
                            </select>
                        </div>
                    </div>
                </td>
                <td>登记时间：</td>
                <td>

                    <input class="layui-input" type="date" id="rTime" name="rTime">

                </td>
            </tr>
            <tr>
                <td>个人履历：</td>
                <td colspan="5">
					<textarea style="height: 50px"  class="layui-input" id="record" name="record">

					</textarea>
                </td>
            </tr>
        </table>
        <table class="layui-table jiji">
            <tr>
                <td>简历附件：</td>
                <td>

                        <input type="file" name="multipartFile" required>
                              <span style="color: red" th:text="${cuowu}"></span>
                </td>
            </tr>
            <tr>
                <td>是否推荐面试</td>
                <td>
                    <div class="layui-input-inline" style="display: block;">
                        <div class="layui-input-block" style="margin-left: 0px;">
                            <select name="isInterview" lay-verify="" id="isInterview">
                                <option value="" name="isInterview">--请选择--</option>
                                <option value="是" name="isInterview">是</option>
                                <option value="否" name="isInterview">否</option>
                            </select>
                        </div>
                    </div>
                </td>
                <td>推荐人</td>
                <td><input class="layui-input" type="text" id="referrer" name="referrer"></td>
                <td>推荐时间</td>
                <td>
                    <input class="layui-input" type="date" id="time" name="time">
                </td>
            </tr>
            <tr>
                <td>推荐面试意见：</td>
                <td colspan="5"><textarea style="height: 50px"  class="layui-input" id="comment" name="comment">

					</textarea></td>

            </tr>
        </table>
        <div align="center">
            <input type="submit" class="layui-btn" value="&nbsp;&nbsp;保&nbsp;存&nbsp;&nbsp;" id="btnss"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <a href="/selyy"><input type="button" class="layui-btn layui-btn-normal"  value="&nbsp;&nbsp;返&nbsp;回&nbsp;&nbsp;" /></a>
        </div>

    </form>
</div>

<!--分层                          -->

<div style="display:none" class="test2">
    <table border="1" class="layui-table" style="margin-top:10px">
        <tr>
            <td>职位名称：</td>
            <td width="29%">
                <input type="text" class="layui-input " id="name0">
            </td>
            <td>职位编码：</td>
            <td width="29%">
                <input type="text" class="layui-input " id="positionid0">
            </td>

            <td>所属部门：</td>
            <td width="29%">
                <select name="city" lay-verify="" id="departmentid0" class="layui-input">
                    <option value='0'>请选择</option>
                </select>
            </td>
            <td colspan="2">
                <button class="layui-btn layui-btn-normal" onclick="selPro()">&nbsp;&nbsp;查&nbsp;询&nbsp;&nbsp;
                </button>
            </td>
        </tr>
    </table>
    <center> <button class="layui-btn layui-btn-normal a51" onclick="xuan()" style="margin-top: 20px">确定</button></center>

    <table border="1" class="layui-table a61 table-page" lay-even lay-skin="row" id="job2" style="margin-top:20px">
        <tr>
            <td>选择</td>
            <td>职位编码</td>
            <td>职位名称</td>
            <td>职位分类</td>
            <td>所属部门</td>
        </tr>
        <tr>
            <td>1</td>
            <td>1</td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td>1</td>
            <td>1</td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td>1</td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td>1</td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td>1</td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
    </table>
    <div class="icon a7b" align="center">
        <a class="layui-btn layui-btn-primary" onclick="start()">首页</a>
        <a class="layui-btn  layui-btn-primary" onclick="prev()">上一页</a>
        <span class="showPage a9b page" id="page">1/1</span>
        <a class="layui-btn layui-btn-primary" onclick="next()">下一页</a>
        <a class="layui-btn layui-btn-primary" onclick="end()">末页</a>
    </div>
</div>

</body>
<script>
    layui.use('table', function () {
        //只有执行了这一步，部分表单元素才会自动修饰成功
        //但是，如果你的HTML是动态生成的，自动渲染就会失效
        //因此你需要在相应的地方，执行下述方法来手动渲染，跟这类似的还有 element.init();
        $.ajax({
            url: '/zhiwei',
            dataType: 'json',
            type: 'get',
            success: function (dataB) {
                //console.log(dataB);// 下面会提到这个dataB是什么值
                //使用循环遍历，给下拉列表赋值
                $.each(dataB, function (index, value) {
                    $('#departmentid0').append(new Option(value.allName, value.organizationId));// 下拉菜单里添加元素
                });
            }
        })
    });
</script>
<script>
    function tanchuang() {
        layer.open({
            // title: '职位选择',
            // content: $(".test2"),
            // shadeClose: true, //点击遮罩区域是否关闭页面
            // area: ['900px', '500px'],
            // btn: ["确定", "取消"]
            type: 1
            , closeBtn: 1 //关闭按钮是否显示 1显示0不显示
            , title: "职位选择"//页面标题
            , shadeClose: true //点击遮罩区域是否关闭页面
            , shade: 0.5 //遮罩透明度 类型：String/Array/Boolean 弹层外区域。默认是0.3透明度的黑色背景（'#000'）。如果你想定义别的颜色，可以shade: [0.8, '#393D49']；如果你不想显示遮罩，可以shade: 0
            , area: ['900px', '470px'] //弹出层页面比例
            , content: $(".test2")//弹出层的url,//这里content是一个URL，如果你不想让iframe出现滚动条，你还可以content: ['XXX.html', 'no']
        })
    }
</script>
<script>
    layui.use('form', function() {
        var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功

        //……

        //但是，如果你的HTML是动态生成的，自动渲染就会失效
        //因此你需要在相应的地方，执行下述方法来手动渲染，跟这类似的还有 element.init();
        form.render();
    });

    //弹层设置
    layui.use("layer", function () {
        var layer = layui.layer;
    });
</script>

<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#rTime' //指定元素
            ,type: 'date'
        });
    });
</script>
</html>